<?php
	session_start();
	include('../config.php');
	$name=$_POST['name'];
	$firstname=$_POST['firstname'];
	$lastname=$_POST['lastname'];
	$email=$_POST['email'];
	$address=$_POST['address'];
	mysql_query("UPDATE user SET Firstname='$firstname', Lastname = '$lastname', Email='$email',uAddress='$address' WHERE uName='$name'") or die(mysql_error());
	$_SESSION['fName']=$firstname;
  	$_SESSION['lName']=$lastname;
  	$_SESSION['email']=$email;
  	$_SESSION['address']=$address;
	header("location: ../index.php");
	exit();
?>